﻿using IterationLife.Educations.Models;
using Util.Datas.Ef;

namespace IterationLife.Datas.Mappings.Educations {
    /// <summary>
    /// 科目分类映射配置
    /// </summary>
    public class SubjectCategoryMap : AggregateRootMapBase<SubjectCategory> {
        /// <summary>
        /// 映射表
        /// </summary>
        protected override void MapTable() {
            ToTable( "SubjectCategories", "Educations" );
        }
        
        /// <summary>
        /// 映射属性
        /// </summary>
        protected override void MapProperties() {
            //科目分类编号
            Property(t => t.Id)
                .HasColumnName("SubjectCategoryId");
        }
        
        /// <summary>
        /// 映射导航属性
        /// </summary>
        protected override void MapAssociations() {
        }
    }
}